package jdo.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Metro {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id_metro;
	
	@Persistent
	private String nom;
	@Persistent
	private String ligne;
	@Persistent
	private String coord_x; /*X_WGS84*/
	@Persistent
	private String coord_y; /*Y_WGS84*/
	
	public Metro(String name,String line,String coordinate_x,String coordinate_y){
		nom=name;
		ligne=line;
		coord_x=coordinate_x;
		coord_y=coordinate_y;
	}

	public Long getKey() {
		return id_metro;
	}


	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getLigne() {
		return ligne;
	}

	public void setLigne(String ligne) {
		this.ligne = ligne;
	}

	public String getCoordX() {
		return coord_x;
	}

	public void setCoordX(String coord_x) {
		this.coord_x = coord_x;
	}
	
	public String getCoordY() {
		return coord_y;
	}

	public void setCoordY(String coord_y) {
		this.coord_y = coord_y;
	}
	
}

